import sys
from PyQt5.QtWidgets import QWidget,QApplication
import form

class initForm(QWidget):
    def __init__(self):
        super().__init__()
        self.ui = form.Ui_Form()
        self.ui.setupUi(self)
        self.setWindowTitle("网络调试助手")
        
    def closeEvent(self, event):
        print("窗体关闭")
        
if __name__ == "__main__":
    app = QApplication(sys.argv)
    wl = initForm()
    wl.show()
    sys.exit(app.exec())